<!DOCTYPE html>
<html>
<head>
    <title></title>
    <#include "/header.html">
    <link rel="stylesheet" href="${request.contextPath}/statics/css/bootstrap-datetimepicker.min.css">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <div class="form-group col-sm-2">
                <input type="text" class="form-control" v-model="q.name" @keyup.enter="query" placeholder="从业人员">
            </div>
            <a class="btn btn-default" @click="query">查询</a>
            <#if shiro.hasPermission("manage:practitioners:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
        </#if>
        <#if shiro.hasPermission("manage:practitioners:update")>
        <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
    </#if>
    <#if shiro.hasPermission("manage:practitioners:delete")>
    <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
</#if>
<!--<a class="btn btn-primary" @click="cancel">撤销</a>-->
<!--<a id="saveZipButton" class="btn btn-primary" type="button">导入</a>-->
<input id="articleImageFile" name="excelFile" type="file" class="form-control" style="width: 300px; display: inline;"/>
<input id="saveZipButton" class="btn btn-primary" type="button" value="导入"/>
</div>
<table id="jqGrid"></table>
<div id="jqGridPager"></div>
</div>

<div v-show="!showList" class="panel panel-default">
    <div class="panel-heading">{{title}}</div>
    <form class="form-horizontal">

        <div class="container">
            <div class="form-group col-md-12">
                <label class="col-md-2 control-label">姓名</label>
                <div class="col-md-4">
                    <input class="form-control" type="text" v-model="practitioners.name" placeholder="姓名"/>
                </div>
                <label class="col-md-2 control-label">职务</label>
                <div class="col-md-4">
                    <input class="form-control" v-model="practitioners.job" placeholder="职务" type="text"/>
                </div>
            </div>
        </div>

        <div class="container">
            <div class="form-group col-md-12">
                <label class="col-md-2 control-label">身份证号码</label>
                <div class="col-md-4">
                    <input class="form-control" type="text" v-model="practitioners.idCard" placeholder="身份证号码"/>
                </div>
                <label class="col-md-2 control-label">联系电话</label>
                <div class="col-md-4">
                    <input class="form-control" v-model="practitioners.phone" placeholder="联系电话" type="text"/>
                </div>
            </div>
        </div>

        <div class="container">
            <div class="form-group col-md-12">
                <label class="col-md-2 control-label">入职时间</label>
                <div class="col-md-4">
                    <input class="form-control" id="entryTime" v-model="practitioners.entryTime" placeholder="入职时间" type="text" autocomplete="off"/>
                </div>
                <label class="col-md-2 control-label">辞（离）职时间</label>
                <div class="col-md-4">
                    <input class="form-control" id="leaveTime" v-model="practitioners.leaveTime" placeholder="辞（离）职时间" type="text" autocomplete="off"/>
                </div>
            </div>
        </div>

        <div class="container">
            <div class="form-group col-md-12">
                <label class="col-md-2 control-label">监管状态</label>
                <div class="col-md-4">
                    <select class="form-control" class="form-control" v-model="practitioners.effState" placeholder="监管状态">
                        <option value="1">有效</option>
                        <option value="2">无效</option>
                        <option value="3">撤销</option>
                        <option value="4">其它</option>
                    </select>
                </div>
                <label class="col-md-2 control-label">监管结果</label>
                <div class="col-md-4">
                    <input class="form-control" v-model="practitioners.result" placeholder="监管结果" type="text"/>
                </div>
            </div>
        </div>

        <div class="container">
            <div class="form-group col-md-12">
                <label class="col-md-2 control-label">家庭住址</label>
                <div class="col-md-4">
                    <textarea class="form-control" v-model="practitioners.addr" placeholder="家庭住址" type="text"></textarea>
                </div>
                <label class="col-md-2 control-label">监管事由</label>
                <div class="col-md-4">
                    <textarea class="form-control" v-model="practitioners.cause" placeholder="监管事由" type="text"></textarea>
                </div>
            </div>
        </div>

        <div class="container">
            <div class="form-group col-md-12">
                <label class="col-md-2 control-label">开除原因</label>
                <div class="col-md-4">
                    <textarea class="form-control" v-model="practitioners.reason" placeholder="开除原因" type="text"></textarea>
                </div>
                <label class="col-md-2 control-label">备注</label>
                <div class="col-md-4">
                    <textarea class="form-control" v-model="practitioners.remarks" placeholder="备注" type="text"></textarea>
                </div>
            </div>
        </div>


        <div class="container">
            <div class="form-group col-md-12">
        <div class="form-group">
            <div class="col-md-6 control-label"></div>
            <input type="button" class="btn btn-primary" id="btnSaveOrUpdate" data-loading-text="保存中..." @click="saveOrUpdate" value="确定"/>
            &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
        </div>
        </div>
        </div>
    </form>
</div>
</div>
<script src="${request.contextPath}/statics/libs/bootstrap-datetimepicker.min.js"></script>
<script src="${request.contextPath}/statics/libs/bootstrap-datetimepicker.zh-CN.js"></script>
<script src="${request.contextPath}/statics/js/modules/manage/practitioners.js?_${.now?long}"></script>
</body>
</html>